import request from '@/api/request'
//获取文章列表
function getArticleList(kv){
  return request({
    url:'/api/leju/admin/article/list',
    method:'GET',
    kv
  })
}
//获取文章明细
function getArticleDetail(kv){
  return request({
    url:'/api/leju/admin/article/detail',
    method:'GET',
    kv
  })
}
//新增文章
function ArticleUp(kv){
  return request({
    url:'/api/leju/admin/article/saveOrUpdate',
    method:'POST',
    kv
  })
}
//删除文章
function DelArticle(kv){
  return request({
    url:'/api/leju/admin/article/del',
    method:'POST',
    kv
  })
}
export default {

  getArticleList,
  getArticleDetail,
  ArticleUp,
  DelArticle

}




